package com.pospi.xstore.dto;

import com.pospi.xstore.util.DoubleSave;

import java.io.Serializable;

/**
 * Created by Qiyan on 2016/5/11.
 */
public class GoodsDto implements Serializable {
    private double price;//商品的单价
    private double num;//添加商品的数量
    private String name;//商品的名称
    private String Code;//商品的条码
    private double discount;

    private String group_sid;//样式组
    private String image;
    private boolean isHide;
    private String colorCodeShow;
    private String modified;//样式
    private String unit;
    private String sid;
    private String dzc;//电子称商品0称重1计份

    private String spec;//规格
    private double proPrice;//促销价
    private String proType;//促销类型
    private double proDiscout;//促销折扣
    private double oldPrice;//
    private int singnum;
    private int muchnum;
    private String logic;
    private double hyzk;
    private double lszk;
    private double cxzk;

    public double getHyzk() {
        return hyzk;
    }

    public void setHyzk(double hyzk) {
        this.hyzk = hyzk;
    }

    public double getLszk() {
        return lszk;
    }

    public void setLszk(double lszk) {
        this.lszk = lszk;
    }

    public double getCxzk() {
        return cxzk;
    }

    public void setCxzk(double cxzk) {
        this.cxzk = cxzk;
    }

    public String getDzc() {
        return dzc;
    }

    public void setDzc(String dzc) {
        this.dzc = dzc;
    }

    public String getSpec() {
        return spec;
    }

    public void setSpec(String spec) {
        this.spec = spec;
    }

    public String getLogic() {
        return logic;
    }

    public void setLogic(String logic) {
        this.logic = logic;
    }

    public int getSingnum() {
        return singnum;
    }

    public void setSingnum(int singnum) {
        this.singnum = singnum;
    }

    public int getMuchnum() {
        return muchnum;
    }

    public void setMuchnum(int muchnum) {
        this.muchnum = muchnum;
    }

    public double getOldPrice() {
        return oldPrice;
    }

    public void setOldPrice(double oldPrice) {
        this.oldPrice = oldPrice;
    }

    public double getProPrice() {
        return proPrice;
    }

    public void setProPrice(double proPrice) {
        this.proPrice = proPrice;
    }

    public String getProType() {
        return proType;
    }

    public void setProType(String proType) {
        this.proType = proType;
    }

    public double getProDiscout() {
        return proDiscout;
    }

    public void setProDiscout(double proDiscout) {
        this.proDiscout = proDiscout;
    }

    public String getSid() {
        return sid;
    }

    public void setSid(String sid) {
        this.sid = sid;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public String getModified() {
        return modified;
    }

    public void setModified(String modified) {
        this.modified = modified;
    }

    private String category_sid;//根据id去查找分组

    public double getDiscount() {
        return DoubleSave.doubleSaveTwo(lszk+cxzk+hyzk);
    }

    public void setDiscount(double discount) {
        this.discount = discount;
    }

    public String getCategory_sid() {
        return category_sid;
    }

    public void setCategory_sid(String category_sid) {
        this.category_sid = category_sid;
    }

    public String getGroup_sid() {
        return group_sid;
    }

    public void setGroup_sid(String group_sid) {
        this.group_sid = group_sid;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public boolean isHide() {
        return isHide;
    }

    public void setIsHide(boolean isHide) {
        this.isHide = isHide;
    }

    public String getColorCodeShow() {
        return colorCodeShow;
    }

    public void setColorCodeShow(String colorCodeShow) {
        this.colorCodeShow = colorCodeShow;
    }

    public String getCode() {
        return Code;
    }

    public void setCode(String code) {
        this.Code = code;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public double getNum() {
        return num;
    }

    public void setNum(double num) {
        this.num = num;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
